<?xml version="1.0" encoding="ascii"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
          "DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
  <title>tennisView.View</title>
  <link rel="stylesheet" href="epydoc.css" type="text/css" />
  <script type="text/javascript" src="epydoc.js"></script>
</head>

<body bgcolor="white" text="black" link="blue" vlink="#204080"
      alink="#204080">
<!-- ==================== NAVIGATION BAR ==================== -->
<table class="navbar" border="0" width="100%" cellpadding="0"
       bgcolor="#a0c0ff" cellspacing="0">
  <tr valign="middle">
  <!-- Home link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="tennisScore-module.html">Home</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Tree link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="module-tree.html">Trees</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Index link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="identifier-index.html">Indices</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Help link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="help.html">Help</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Project homepage -->
      <th class="navbar" align="right" width="100%">
        <table border="0" cellpadding="0" cellspacing="0">
          <tr><th class="navbar" align="center"
            >tennisScore</th>
          </tr></table></th>
  </tr>
</table>
<table width="100%" cellpadding="0" cellspacing="0">
  <tr valign="top">
    <td width="100%">
      <span class="breadcrumbs">
        <a href="tennisView-module.html">Module&nbsp;tennisView</a> ::
        Class&nbsp;View
      </span>
    </td>
    <td>
      <table cellpadding="0" cellspacing="0">
        <!-- hide/show private -->
        <tr><td align="right"><span class="options"
            >[<a href="frames.html" target="_top">frames</a
            >]&nbsp;|&nbsp;<a href="tennisView.View-class.html"
            target="_top">no&nbsp;frames</a>]</span></td></tr>
      </table>
    </td>
  </tr>
</table>
<!-- ==================== CLASS DESCRIPTION ==================== -->
<h1 class="epydoc">Class View</h1><p class="nomargin-top"><span class="codelink"><a href="tennisView-pysrc.html#View">source&nbsp;code</a></span></p>
<center>
<center>  <map id="class_hierarchy_for_view" name="class_hierarchy_for_view">
<area shape="rect" id="node1" href="tennisView.View-class.html" title="View" alt="" coords="5,6,56,31"/>
<area shape="rect" id="node2" href="javascript:void(0);" title="tkinter.Toplevel" alt="" coords="81,6,191,31"/>
</map>
  <img src="class_hierarchy_for_view.gif" alt='' usemap="#class_hierarchy_for_view" ismap="ismap" class="graph-without-title" />
</center>
</center>
<hr />
<p>The scoreboard for a tennis match.</p>

<!-- ==================== INSTANCE METHODS ==================== -->
<a name="section-InstanceMethods"></a>
<table class="summary" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr bgcolor="#70b0f0" class="table-header">
  <td align="left" colspan="2" class="table-header">
    <span class="table-header">Instance Methods</span></td>
</tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="tennisView.View-class.html#__init__" class="summary-sig-name">__init__</a>(<span class="summary-sig-arg">self</span>,
        <span class="summary-sig-arg">master</span>)</span></td>
          <td align="right" valign="top">
            <span class="codelink"><a href="tennisView-pysrc.html#View.__init__">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a name="exit"></a><span class="summary-sig-name">exit</span>(<span class="summary-sig-arg">self</span>)</span><br />
      Do any image window close, file close, image close, etc., and exit.</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="tennisView-pysrc.html#View.exit">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a name="readCountries"></a><span class="summary-sig-name">readCountries</span>(<span class="summary-sig-arg">self</span>)</span><br />
      Read in IOC country codes (key) from URL, and set corresponding 
      country and flag name (values).</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="tennisView-pysrc.html#View.readCountries">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="tennisView.View-class.html#setTeamMembers" class="summary-sig-name">setTeamMembers</a>(<span class="summary-sig-arg">self</span>,
        <span class="summary-sig-arg">team1String</span>,
        <span class="summary-sig-arg">team2String</span>)</span><br />
      Sets the team member strings for the match.</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="tennisView-pysrc.html#View.setTeamMembers">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="tennisView.View-class.html#setTeam" class="summary-sig-name">setTeam</a>(<span class="summary-sig-arg">self</span>,
        <span class="summary-sig-arg">team</span>)</span><br />
      Sets the two team objects for the match.</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="tennisView-pysrc.html#View.setTeam">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a name="setRank"></a><span class="summary-sig-name">setRank</span>(<span class="summary-sig-arg">self</span>)</span><br />
      Sets the rank text for each team.</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="tennisView-pysrc.html#View.setRank">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a name="setFlags"></a><span class="summary-sig-name">setFlags</span>(<span class="summary-sig-arg">self</span>)</span><br />
      Sets the flags for each team member's country.</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="tennisView-pysrc.html#View.setFlags">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="tennisView.View-class.html#setOneFlag" class="summary-sig-name">setOneFlag</a>(<span class="summary-sig-arg">self</span>,
        <span class="summary-sig-arg">label</span>,
        <span class="summary-sig-arg">countryCode</span>,
        <span class="summary-sig-arg">row</span>,
        <span class="summary-sig-arg">column</span>)</span><br />
      Obtains a flag image and configures a label with it.</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="tennisView-pysrc.html#View.setOneFlag">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">tk.PhotoImage (unless some error, then None)</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="tennisView.View-class.html#getFlagImage" class="summary-sig-name">getFlagImage</a>(<span class="summary-sig-arg">self</span>,
        <span class="summary-sig-arg">countryCode</span>)</span><br />
      Returns a base 64 encoded image of a flag from URL indicated by 
      countryCode.</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="tennisView-pysrc.html#View.getFlagImage">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="tennisView.View-class.html#showWinnerPhotos" class="summary-sig-name">showWinnerPhotos</a>(<span class="summary-sig-arg">self</span>,
        <span class="summary-sig-arg">winner</span>)</span><br />
      Shows photo(s) of the match winner(s).</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="tennisView-pysrc.html#View.showWinnerPhotos">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="tennisView.View-class.html#setServer" class="summary-sig-name">setServer</a>(<span class="summary-sig-arg">self</span>,
        <span class="summary-sig-arg">server</span>)</span><br />
      Updates the scoreboard indicator for the current server.</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="tennisView-pysrc.html#View.setServer">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="tennisView.View-class.html#setMessage" class="summary-sig-name">setMessage</a>(<span class="summary-sig-arg">self</span>,
        <span class="summary-sig-arg">message</span>)</span><br />
      Sets the scoreboard message.</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="tennisView-pysrc.html#View.setMessage">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="tennisView.View-class.html#setGameScore" class="summary-sig-name">setGameScore</a>(<span class="summary-sig-arg">self</span>,
        <span class="summary-sig-arg">score</span>)</span><br />
      Sets the current game score.</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="tennisView-pysrc.html#View.setGameScore">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="tennisView.View-class.html#setTiebreak" class="summary-sig-name">setTiebreak</a>(<span class="summary-sig-arg">self</span>,
        <span class="summary-sig-arg">tiebreak</span>)</span><br />
      Sets whether  currently in a tiebreak.</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="tennisView-pysrc.html#View.setTiebreak">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="tennisView.View-class.html#addSetCtrl" class="summary-sig-name">addSetCtrl</a>(<span class="summary-sig-arg">self</span>,
        <span class="summary-sig-arg">set</span>)</span><br />
      Adds scoreboard controls for new set.</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="tennisView-pysrc.html#View.addSetCtrl">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="tennisView.View-class.html#setSet" class="summary-sig-name">setSet</a>(<span class="summary-sig-arg">self</span>,
        <span class="summary-sig-arg">currentSet</span>)</span><br />
      Starts a new set.</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="tennisView-pysrc.html#View.setSet">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="tennisView.View-class.html#setSetScore" class="summary-sig-name">setSetScore</a>(<span class="summary-sig-arg">self</span>,
        <span class="summary-sig-arg">score</span>)</span><br />
      Updates the set scores.</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="tennisView-pysrc.html#View.setSetScore">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">&nbsp;</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a name="setSetColorsSame"></a><span class="summary-sig-name">setSetColorsSame</span>(<span class="summary-sig-arg">self</span>)</span><br />
      Sets the set control foreground and background colors the same as the
      main colors.</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="tennisView-pysrc.html#View.setSetColorsSame">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">tuple of colors</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="tennisView.View-class.html#getScoreColor" class="summary-sig-name">getScoreColor</a>(<span class="summary-sig-arg">self</span>)</span><br />
      Gets the game score colors depending on whether a normal game or a 
      tiebreak.</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="tennisView-pysrc.html#View.getScoreColor">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
<tr>
    <td width="15%" align="right" valign="top" class="summary">
      <span class="summary-type">tuple of colors</span>
    </td><td class="summary">
      <table width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td><span class="summary-sig"><a href="tennisView.View-class.html#getSetColor" class="summary-sig-name">getSetColor</a>(<span class="summary-sig-arg">self</span>,
        <span class="summary-sig-arg">set</span>)</span><br />
      Gets the set score color depending on whether it is the current or a 
      previous set.</td>
          <td align="right" valign="top">
            <span class="codelink"><a href="tennisView-pysrc.html#View.getSetColor">source&nbsp;code</a></span>
            
          </td>
        </tr>
      </table>
      
    </td>
  </tr>
</table>
<!-- ==================== METHOD DETAILS ==================== -->
<a name="section-MethodDetails"></a>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr bgcolor="#70b0f0" class="table-header">
  <td align="left" colspan="2" class="table-header">
    <span class="table-header">Method Details</span></td>
</tr>
</table>
<a name="__init__"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">__init__</span>(<span class="sig-arg">self</span>,
        <span class="sig-arg">master</span>)</span>
    <br /><em class="fname">(Constructor)</em>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="tennisView-pysrc.html#View.__init__">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  
  <dl class="fields">
    <dt>Parameters:</dt>
    <dd><ul class="nomargin-top">
        <li><strong class="pname"><code>master</code></strong> (Toplevel widget) - Main application window.</li>
    </ul></dd>
  </dl>
</td></tr></table>
</div>
<a name="setTeamMembers"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">setTeamMembers</span>(<span class="sig-arg">self</span>,
        <span class="sig-arg">team1String</span>,
        <span class="sig-arg">team2String</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="tennisView-pysrc.html#View.setTeamMembers">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <p>Sets the team member strings for the match.</p>
  <dl class="fields">
    <dt>Parameters:</dt>
    <dd><ul class="nomargin-top">
        <li><strong class="pname"><code>team1String</code></strong> (string) - Name(s) for first team.</li>
        <li><strong class="pname"><code>team2String</code></strong> (string) - Name(s) for second team.</li>
    </ul></dd>
  </dl>
</td></tr></table>
</div>
<a name="setTeam"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">setTeam</span>(<span class="sig-arg">self</span>,
        <span class="sig-arg">team</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="tennisView-pysrc.html#View.setTeam">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <p>Sets the two team objects for the match. Also sets ranks and flags for
  teams.</p>
  <dl class="fields">
    <dt>Parameters:</dt>
    <dd><ul class="nomargin-top">
        <li><strong class="pname"><code>team</code></strong> (list of Teams) - The list of Team objects for the match.</li>
    </ul></dd>
  </dl>
</td></tr></table>
</div>
<a name="setOneFlag"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">setOneFlag</span>(<span class="sig-arg">self</span>,
        <span class="sig-arg">label</span>,
        <span class="sig-arg">countryCode</span>,
        <span class="sig-arg">row</span>,
        <span class="sig-arg">column</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="tennisView-pysrc.html#View.setOneFlag">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <p>Obtains a flag image and configures a label with it. Grids the 
  label.</p>
  <dl class="fields">
    <dt>Parameters:</dt>
    <dd><ul class="nomargin-top">
        <li><strong class="pname"><code>label</code></strong> (tkl.Label) - Label to configure with flag image.</li>
        <li><strong class="pname"><code>countryCode</code></strong> (string) - Three-letter IOC code for country.</li>
        <li><strong class="pname"><code>row</code></strong> (integer) - Row for label placement</li>
        <li><strong class="pname"><code>column</code></strong> (integer) - Column for label placement</li>
    </ul></dd>
  </dl>
</td></tr></table>
</div>
<a name="getFlagImage"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">getFlagImage</span>(<span class="sig-arg">self</span>,
        <span class="sig-arg">countryCode</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="tennisView-pysrc.html#View.getFlagImage">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <p>Returns a base 64 encoded image of a flag from URL indicated by 
  countryCode.</p>
  <dl class="fields">
    <dt>Parameters:</dt>
    <dd><ul class="nomargin-top">
        <li><strong class="pname"><code>countryCode</code></strong> (string) - Three-letter IOC code for country.</li>
    </ul></dd>
    <dt>Returns: tk.PhotoImage (unless some error, then None)</dt>
        <dd>A base 64 encoded image of a flag from URL indicated by 
          countryCode. If error, None.</dd>
  </dl>
</td></tr></table>
</div>
<a name="showWinnerPhotos"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">showWinnerPhotos</span>(<span class="sig-arg">self</span>,
        <span class="sig-arg">winner</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="tennisView-pysrc.html#View.showWinnerPhotos">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <p>Shows photo(s) of the match winner(s).</p>
  <dl class="fields">
    <dt>Parameters:</dt>
    <dd><ul class="nomargin-top">
        <li><strong class="pname"><code>winner</code></strong> (integer) - Number of the winning team.</li>
    </ul></dd>
  </dl>
</td></tr></table>
</div>
<a name="setServer"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">setServer</span>(<span class="sig-arg">self</span>,
        <span class="sig-arg">server</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="tennisView-pysrc.html#View.setServer">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <p>Updates the scoreboard indicator for the current server.</p>
  <dl class="fields">
    <dt>Parameters:</dt>
    <dd><ul class="nomargin-top">
        <li><strong class="pname"><code>server</code></strong> (integer) - Number of the current server.</li>
    </ul></dd>
  </dl>
</td></tr></table>
</div>
<a name="setMessage"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">setMessage</span>(<span class="sig-arg">self</span>,
        <span class="sig-arg">message</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="tennisView-pysrc.html#View.setMessage">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <p>Sets the scoreboard message.</p>
  <dl class="fields">
    <dt>Parameters:</dt>
    <dd><ul class="nomargin-top">
        <li><strong class="pname"><code>message</code></strong> (string) - Message to be displayed by the scoreboard.</li>
    </ul></dd>
  </dl>
</td></tr></table>
</div>
<a name="setGameScore"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">setGameScore</span>(<span class="sig-arg">self</span>,
        <span class="sig-arg">score</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="tennisView-pysrc.html#View.setGameScore">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <p>Sets the current game score. Handles deuce and ad situations. Converts
  score (0,1,2,3,..) into (0, 15, 30, 40,...)</p>
  <dl class="fields">
    <dt>Parameters:</dt>
    <dd><ul class="nomargin-top">
        <li><strong class="pname"><code>score</code></strong> (list of integers) - Current game score.</li>
    </ul></dd>
  </dl>
</td></tr></table>
</div>
<a name="setTiebreak"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">setTiebreak</span>(<span class="sig-arg">self</span>,
        <span class="sig-arg">tiebreak</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="tennisView-pysrc.html#View.setTiebreak">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <p>Sets whether  currently in a tiebreak.</p>
  <dl class="fields">
    <dt>Parameters:</dt>
    <dd><ul class="nomargin-top">
        <li><strong class="pname"><code>tiebreak</code></strong> (boolean) - Flag, True if in a tiebreak.</li>
    </ul></dd>
  </dl>
</td></tr></table>
</div>
<a name="addSetCtrl"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">addSetCtrl</span>(<span class="sig-arg">self</span>,
        <span class="sig-arg">set</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="tennisView-pysrc.html#View.addSetCtrl">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <p>Adds scoreboard controls for new set. Hides them at beginning of 
  set.</p>
  <dl class="fields">
    <dt>Parameters:</dt>
    <dd><ul class="nomargin-top">
        <li><strong class="pname"><code>set</code></strong> (integer) - Number of set (0 = first set)</li>
    </ul></dd>
  </dl>
</td></tr></table>
</div>
<a name="setSet"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">setSet</span>(<span class="sig-arg">self</span>,
        <span class="sig-arg">currentSet</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="tennisView-pysrc.html#View.setSet">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <p>Starts a new set. Hides game score at beginning of set.</p>
  <dl class="fields">
    <dt>Parameters:</dt>
    <dd><ul class="nomargin-top">
        <li><strong class="pname"><code>currentSet</code></strong> (integer.) - Number of the current set (0 = first set)</li>
    </ul></dd>
  </dl>
</td></tr></table>
</div>
<a name="setSetScore"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">setSetScore</span>(<span class="sig-arg">self</span>,
        <span class="sig-arg">score</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="tennisView-pysrc.html#View.setSetScore">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <p>Updates the set scores.</p>
  <dl class="fields">
    <dt>Parameters:</dt>
    <dd><ul class="nomargin-top">
        <li><strong class="pname"><code>score</code></strong> (list of lists of integers) - List of set scores up to and including current set.</li>
    </ul></dd>
  </dl>
</td></tr></table>
</div>
<a name="getScoreColor"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">getScoreColor</span>(<span class="sig-arg">self</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="tennisView-pysrc.html#View.getScoreColor">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <p>Gets the game score colors depending on whether a normal game or a 
  tiebreak.</p>
  <dl class="fields">
    <dt>Returns: tuple of colors</dt>
        <dd>Foreground and background color as a tuple.</dd>
  </dl>
</td></tr></table>
</div>
<a name="getSetColor"></a>
<div>
<table class="details" border="1" cellpadding="3"
       cellspacing="0" width="100%" bgcolor="white">
<tr><td>
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr valign="top"><td>
  <h3 class="epydoc"><span class="sig"><span class="sig-name">getSetColor</span>(<span class="sig-arg">self</span>,
        <span class="sig-arg">set</span>)</span>
  </h3>
  </td><td align="right" valign="top"
    ><span class="codelink"><a href="tennisView-pysrc.html#View.getSetColor">source&nbsp;code</a></span>&nbsp;
    </td>
  </tr></table>
  
  <p>Gets the set score color depending on whether it is the current or a 
  previous set.</p>
  <dl class="fields">
    <dt>Returns: tuple of colors</dt>
        <dd>Foreground and background color as a tuple.</dd>
  </dl>
</td></tr></table>
</div>
<br />
<!-- ==================== NAVIGATION BAR ==================== -->
<table class="navbar" border="0" width="100%" cellpadding="0"
       bgcolor="#a0c0ff" cellspacing="0">
  <tr valign="middle">
  <!-- Home link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="tennisScore-module.html">Home</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Tree link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="module-tree.html">Trees</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Index link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="identifier-index.html">Indices</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Help link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="help.html">Help</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Project homepage -->
      <th class="navbar" align="right" width="100%">
        <table border="0" cellpadding="0" cellspacing="0">
          <tr><th class="navbar" align="center"
            >tennisScore</th>
          </tr></table></th>
  </tr>
</table>
<table border="0" cellpadding="0" cellspacing="0" width="100%%">
  <tr>
    <td align="left" class="footer">
    Generated by Epydoc 3.0.1 on Sun Nov  9 17:23:06 2014
    </td>
    <td align="right" class="footer">
      <a target="mainFrame" href="http://epydoc.sourceforge.net"
        >http://epydoc.sourceforge.net</a>
    </td>
  </tr>
</table>

<script type="text/javascript">
  <!--
  // Private objects are initially displayed (because if
  // javascript is turned off then we want them to be
  // visible); but by default, we want to hide them.  So hide
  // them unless we have a cookie that says to show them.
  checkCookie();
  // -->
</script>
</body>
</html>
